<include file="public@header" />
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <!--<li ><a href="{:url('task/addtask')}">添加任务</a></li>-->
        <li  class="active"><a href="{:url('task/taskList')}">删除任务列表</a></li>
    </ul>
    <!--<form class="well form-inline margin-top-20" method="get" action="{:url('Task/taskList')}">
        状态:
        <select class="form-control" name="task_status" style="width: 120px;">
            <option value=""  <if condition="$Request.get.task_status eq ''">selected<else /></if> >全部</option>
            <option value="0" <if condition="$Request.get.task_status eq '0'">selected<else /></if>  >待办</option>
            <option value="1" <if condition="$Request.get.task_status eq '1'">selected<else /></if> >进行中</option>
            <option value="2" <if condition="$Request.get.task_status eq '2'">selected<else /></if> >审核</option>
            <option value="3" <if condition="$Request.get.task_status eq '3'">selected<else /></if> >完成</option>
            <option value="4" <if condition="$Request.get.task_status eq '4'">selected<else /></if> >逾期</option>
            <option value="10" <if condition="$Request.get.task_status eq '10'">selected<else /></if> >关闭</option>
        </select>
        任务类型：
        <select class="form-control" name="task_multiplayer" style="width: 120px;">
            <option value=""  <if condition="$Request.get.task_multiplayer eq ''">selected<else /></if> >全部</option>
            <option value="0" <if condition="$Request.get.task_multiplayer eq '0'">selected<else /></if> >单人任务</option>
            <option value="1" <if condition="$Request.get.task_multiplayer eq '1'">selected<else /></if> >多人任务</option>
            <option value="2" <if condition="$Request.get.task_multiplayer eq '2'">selected<else /></if> >部门任务</option>
            <option value="3" <if condition="$Request.get.task_multiplayer eq '3'">selected<else /></if> >标签任务</option>

        </select>
        接受人:
        <input type="text" class="form-control "  name="user_nickname" style="width: 120px;" value="{:input('request.user_nickname/s','')}" >
        开始时间:
        <input type="text" class="form-control js-bootstrap-date"  name="task_start_time" style="width: 120px;" value="{:input('request.task_start_time/s','')}">
        结束时间:
        <input type="text" class="form-control js-bootstrap-date"  name="task_end_time" style="width: 120px;" value="{:input('request.task_end_time/s','')}" >
        <input type="submit" class="btn btn-primary" value="搜索" />
        <a class="btn btn-danger" href="{:url('Task/taskList')}">清空</a>
    </form>-->
    <table class="table table-hover table-bordered">
        <thead>
        <tr>

            <th>任务标题</th>
            <th>内容</th>
            <th>操作人</th>
            <th>项目</th>
            <th>任务类型</th>
            <th>任务标识</th>
            <th>接受人</th>
            <th>创建时间</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th width="40">分数</th>
            <th width="40">状态</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="data" item="vo">
            <tr>
                <td>{$vo.redundancy.task_title}</td>
                <td>{$vo.content}</td>
                <td>{$vo.user_nickname}</td>
                <td>{$vo.redundancy.task_project_id}</td>
                <td>
                    <switch name="$vo.redundancy.task_multiplayer">
                        <case value="0">
                            <span class="label label-danger">单人任务</span>
                        </case>
                        <case value="1">
                            <span class="label label-success">多人任务</span>
                        </case>
                        <case value="2">
                            <span class="label label-warning">部门任务</span>
                        </case>
                        <case value="3">
                            <span class="label label-warning">标签任务</span>
                        </case>
                    </switch>
                </td>
                <td>{$vo.redundancy.identifier}</td>
                <td>{$vo.redundancy.accept_user}</td>
                <td>{$vo.redundancy.task_submit_time?date("Y-m-d",$vo.redundancy.task_submit_time):''}</td>
                <td>{$vo.redundancy.task_start_time?date("Y-m-d",$vo.redundancy.task_start_time):''}</td>
                <td>{$vo.redundancy.task_end_time?date("Y-m-d",$vo.redundancy.task_end_time):''}</td>
                <td>{$vo.redundancy.task_mark}</td>
                <td>
                    <switch name="vo.redundancy.task_status">
                        <case value="0">
                            <span class="">待办</span>
                        </case>
                        <case value="1">
                            <span class="">进行中</span>
                        </case>
                        <case value="2">
                            <a href="{:url('Task/examine',['taskid'=>$vo.task_id])}"><span class="label label-warning">去审核</span></a>
                        </case>
                        <case value="3">
                            <span class="">完成</span>
                        </case>
                        <case value="4">
                            <span class="">逾期</span>
                        </case>
                        <case value="5">
                            <span class="">驳回</span>
                        </case>
                        <case value="10">
                            <span class="">关闭</span>
                        </case>
                    </switch>
                </td>

            </tr>
        </foreach>
        </tbody>
    </table>
    <div class="pagination">{$data_array->render()} <li class="page-item"><a class="page-link" href="javascript:void(0)">共{$data_array->total()}条</a></li></div>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>